package cn.cas.mango.util;

public class TimeUtil {
  private long start;
  public TimeUtil() {
    setStart();
  }
  public void setStart() {
    start = getNowMill();
  }
  public Double getCost() {
    long end = getNowMill();
    return (end - start) / 1000.0;
  }

  private long getNowMill() {
    return System.currentTimeMillis();
  }
}
